package com.hengxinguotong.hxgtwygsp.ui.maintenance;

import com.hengxinguotong.hxgtwygsp.ui.app.ActivityScoped;
import com.hengxinguotong.hxgtwygsp.ui.app.FragmentScoped;
import com.hengxinguotong.hxgtwygsp.ui.maintenance.budget.InAndOutFragment;
import com.hengxinguotong.hxgtwygsp.ui.maintenance.unpaid.UnpaidContract;
import com.hengxinguotong.hxgtwygsp.ui.maintenance.unpaid.UnpaidFragment;
import com.hengxinguotong.hxgtwygsp.ui.maintenance.unpaid.UnpaidPresenter;

import dagger.Binds;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;

/**
 * TODO
 *
 * @author hjz
 * @version V1.0.0
 * @since 2019/3/28 15:01
 */

@Module
public abstract class MaintenanceModule
{
    @FragmentScoped
    @ContributesAndroidInjector
    abstract InAndOutFragment bindsInAndOutFragment();

    @ContributesAndroidInjector
    @FragmentScoped
    abstract UnpaidFragment bindsUnpaidFragment();


    @Binds
    @ActivityScoped
    abstract UnpaidContract.IPresenter bindsUnpaidPresenter(UnpaidPresenter unpaidPresenter);
}
